/**
 * Copyright 2011 FeedDreamwork SIG
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 * 
 * http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */

package org.feeddreamwork.feed;

import java.util.*;

import org.feeddreamwork.*;

public class Feed {
	private String title;
	private String description;
	private String link;
	private String image;
	private String language;
	private String hubLink;
	private List<Entry> entries;

	public Feed(String title, String link) {
		setTitle(title);
		setLink(link);
		entries = new ArrayList<Entry>();
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		Utils.throwIfNullOrEmpty(title);
		this.title = title;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getLink() {
		return link;
	}

	public void setLink(String link) {
		Utils.throwIfNullOrEmpty(link);
		this.link = link;
	}

	public String getImage() {
		return image;
	}

	public void setImage(String image) {
		this.image = image;
	}

	public String getLanguage() {
		return language;
	}

	public void setLanguage(String language) {
		this.language = language;
	}

	public String getHubLink() {
		return hubLink;
	}

	public void setHubLink(String hubLink) {
		this.hubLink = hubLink;
	}

	public List<Entry> getEntries() {
		return entries;
	}
}
